<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<%@ page language="java" contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>

<head>
<title>常客户系统</title>
</head>

<script type="text/javascript">

function regitser(){
	document.location.href='accountRegisterPre.do';
} 

</script>

<style type="text/css">
<!--

html {
	margin: 0px;
	padding: 0px;
	margin-top: 0px;
	margin-bottom: 0px;
}

body {
	margin: 0px;
	padding: 0px;
	margin-top: 0px;
	margin-bottom: 0px;
	background: url(./images/front2.jpg) repeat ;
}

.front-login {
	width: 80px;
	height: 27px;
	color: #000000;
	font-size: 17px;
}

.front-title {
	color: #000000;
	font-size: 30px;
	letter-spacing: 6px;
}

-->
.inputlogin {
	BORDER-RIGHT: dimgray 1px solid;
	BORDER-TOP: dimgray 1px solid;
	FONT-SIZE: 8pt;
	HEIGHT: 20px;
	BORDER-LEFT: dimgray 1px solid;
	BORDER-BOTTOM: dimgray 1px solid;
	FONT-FAMILY: Tahoma, verdana;
	BACKGROUND-COLOR: window;
}
div.title {
	margin-top: 20px;
	margin-left: 100px;
	padding: 0px;
	height: 63px;
}
div.input {
	margin-top: 180px;
	margin-left: 550px;
	padding: 0px;
	height: 108px;
	width : 190px;
}
div.username {
	margin: 0px;
	padding-top: 0px;
	padding-left: 0px;
	height: 45px;
}
div.button {
	margin:20px 0px 0px 435px;
	padding: 0px;
	height: 50px;
	width : 350px;
}
div.warnings {
	margin: 0px;
	padding: 5px 0px 5px 350px;
	height: 50px;
	width : 350px;
}
.button ul {
	margin:0px;
	padding:0px 0px 0px 0px; 
	text-align:left;
}
.button li  {
	display:inline;
	margin:0px;
	padding:0px 70px 0px 0px;
	height:40px;
}
#submit {
	background: url(./images/submit.jpg) no-repeat ;
}
#reset {
	background: url(./images/cancel.jpg) no-repeat ;
}
</style>


<body>
<div class="title" >
	<span class="front-title">欢迎使用常客户系统!</span>
</div>
	
<html:form action="/loginAction" target="_parent">
	<html:hidden property="chartype" value="1" />
	<div class="input">
		<div class="username" >
				<html:text property="username" styleClass="inputlogin" />
		</div>
		<div class="username" >
				<html:password property="password" styleClass="inputlogin" />
		</div>
	</div>
	
	<div class="button">
		<ul>
			<li class="first"><input name="button" type="submit" src="./images/login.gif"  onMouseover="this.style.cursor='hand'" value="  登 录  " class="front-login" /></li>	
			<!-- <li><input name="button" type="reset"  onMouseover="this.style.cursor='hand'" value="  重 置  " class="front-login" /></li> -->
			<li><input name="button" type="button" onClick="regitser();"  onMouseover="this.style.cursor='hand'" value="  注 册  " class="front-login" /></li>
		</ul>
	</div>

	<div class="warnings">
		<html:errors />
	</div>
	
</html:form>
	

</body>
</html>
